package com.an.cloud.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * Rest模板配置
 *
 * @author: ANHE
 * @createDate: 2024/03/21
 * @version: 1.0.0
 */
@Configuration
public class RestTemplateConfig {

    /**
     * 其他模板
     *
     * @return {@link RestTemplate }
     * @author: ANHE
     * @createDate: 2024/03/21
     * @version: 1.0.0
     */
    @Bean
    @LoadBalanced
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
